<?php
// echo $javascript->codeBlock("
// 	jQuery(function(){
// 		jQuery('ul.sf-menu').superfish();
// 	});	
// ",$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));
?>
<ul class="sf-menu">
<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'index')?'first menu-top current':'first menu-top';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("Strona główna", true), array('plugin'=>false,'controller'=>'pages','action'=>'index'),
        array('escape'=>false,'class'=>$class,'target'=>"_blanck")); 
        ?>
     </li>
	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'o-nas')?'menu-top sf-with-ul current':'menu-top sf-with-ul';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("O nas", true).'<span class="sf-sub-indicator"> »</span>', array('plugin'=>false,'controller'=>'pages','action'=>'o-nas'),
        array('escape'=>false,'class'=>$class)); 
        ?>
        <ul>
        	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'historia')?'menu-top current':'menu-top';?>
			<li class="<?php echo $class;?>">
				<?php 
				echo $html->link(__("Historia", true), array('plugin'=>false,'controller'=>'pages','action'=>'historia'),
		        array('escape'=>false,'class'=>$class)); 
		        ?>
			</li>
        	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'statut')?'menu-top current':'menu-top';?>
			<li class="<?php echo $class;?>">
				<?php 
				echo $html->link(__("Statut", true), array('plugin'=>false,'controller'=>'pages','action'=>'statut'),
		        array('escape'=>false,'class'=>$class)); 
		        ?>
			</li>			
        </ul>
	</li>
	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'zarzad')?'menu-top current':'menu-top';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("Zarząd", true), array('plugin'=>false,'controller'=>'pages','action'=>'zarzad'),
        array('escape'=>false,'class'=>$class)); 
        ?> 
	</li>
	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'zespoly')?'menu-top sf-with-ul current':'menu-top sf-with-ul';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("Zespoły", true).'<span class="sf-sub-indicator"> »</span>', array('plugin'=>false,'controller'=>'pages','action'=>'zespoly'),
        array('escape'=>false,'class'=>$class)); 
        ?>
        <ul>
        	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'chory')?'menu-top current':'menu-top';?>
			<li class="<?php echo $class;?>">
				<?php 
				echo $html->link(__("Chóry", true), array('plugin'=>false,'controller'=>'pages','action'=>'chory'),
		        array('escape'=>false,'class'=>$class)); 
		        ?>
			</li>   
			<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'orkiestry')?'menu-top current':'menu-top';?>
			<li class="<?php echo $class;?>">
				<?php 
				echo $html->link(__("Orkiestry", true), array('plugin'=>false,'controller'=>'pages','action'=>'orkiestry'),
		        array('escape'=>false,'class'=>$class)); 
		        ?>
			</li>
        </ul>
	</li>
	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'nasza-dzialalnosc')?'menu-top sf-with-ul current':'menu-top sf-with-ul';?>
		<li class="<?php echo $class;?>">
			<?php 
			echo $html->link(__("Nasza działalnośc", true).'<span class="sf-sub-indicator"> »</span>', array('plugin'=>false,'controller'=>'pages','action'=>'nasza-dzialalnosc'),
	        array('escape'=>false,'class'=>$class)); 
	        ?>
	        <ul>
	        	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'cantate-deo')?'menu-top current':'menu-top';?>
				<li class="<?php echo $class;?>">
					<?php 
					echo $html->link(__("Cantate Deo", true), array('plugin'=>false,'controller'=>'pages','action'=>'cantate-deo'),
			        array('escape'=>false,'class'=>$class)); 
			        ?>
				</li>   
				<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'alleluja')?'menu-top current':'menu-top';?>
				<li class="<?php echo $class;?>">
					<?php 
					echo $html->link(__("Alleluja", true), array('plugin'=>false,'controller'=>'pages','action'=>'alleluja'),
			        array('escape'=>false,'class'=>$class)); 
			        ?>
				</li>
				<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'magnificat')?'menu-top current':'menu-top';?>
				<li class="<?php echo $class;?>">
					<?php 
					echo $html->link(__("Magnificat", true), array('plugin'=>false,'controller'=>'pages','action'=>'magnificat'),
			        array('escape'=>false,'class'=>$class)); 
			        ?>
				</li>
				<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'ogolnopolski-konkurs-churow-acappella')?'menu-top current':'menu-top';?>
				<li class="<?php echo $class;?>">
					<?php 
					echo $html->link(__("Ogólnopolski konkurs churów a'cappella", true), array('plugin'=>false,'controller'=>'pages','action'=>'ogolnopolski-konkurs-churow-acappella'),
			        array('escape'=>false,'class'=>$class)); 
			        ?>
				</li>
				<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'inne')?'menu-top current':'menu-top';?>
				<li class="<?php echo $class;?>">
					<?php 
					echo $html->link(__("Inne", true), array('plugin'=>false,'controller'=>'pages','action'=>'inne'),
			        array('escape'=>false,'class'=>$class)); 
			        ?>
				</li>

	        </ul>
		</li>
		
	<?php $class = (isset($this->params['controller']) && $this->params['controller'] == 'news')?'menu-top current':'menu-top';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("Festiwale & Konkursy", true), array('plugin'=>'calendar','controller'=>'news','action'=>'display'),
        array('escape'=>false,'class'=>$class)); 
        ?>
        <ul>
        	<?php $class = (isset($this->params['controller']) && $this->params['controller'] == 'news')?'menu-top current':'menu-top';?>
			<li class="<?php echo $class;?>">
				<?php 
				echo $html->link(__("Festiwale", true), array('plugin'=>'calendar','controller'=>'news','action'=>'display',1),
		        array('escape'=>false,'class'=>$class)); 
		        ?> 
			</li>
        	<?php $class = (isset($this->params['controller']) && $this->params['controller'] == 'news')?'menu-top current':'menu-top';?>
			<li class="<?php echo $class;?>">
				<?php 
				echo $html->link(__("Konkursy", true), array('plugin'=>'calendar','controller'=>'news','action'=>'display',2),
		        array('escape'=>false,'class'=>$class)); 
		        ?> 
			</li>			
        </ul> 
	</li>

	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'formularze')?'menu-top current':'menu-top';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("Formularze", true), array('plugin'=>false,'controller'=>'pages','action'=>'formularze'),
        array('escape'=>false,'class'=>$class)); 
        ?> 
	</li>
	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'gallery')?'menu-top current':'menu-top';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("Galeria", true), array('plugin'=>false,'controller'=>'pages','action'=>'gallery'),
        array('escape'=>false,'class'=>$class)); 
        ?> 
	</li>
	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'linki')?'menu-top current':'menu-top';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("Linki", true), array('plugin'=>false,'controller'=>'pages','action'=>'linki'),
        array('escape'=>false,'class'=>$class)); 
        ?> 
	</li>
		
	<?php $class = (isset($this->params['pass'][0]) && $this->params['pass'][0] == 'kontakt')?'menu-top current':'menu-top';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link(__("Kontakt", true), array('plugin'=>false,'controller'=>'pages','action'=>'kontakt'),
        array('escape'=>false,'class'=>$class)); 
        ?>
	</li>
</ul>

